package com.newtribe.security.cert;

import java.util.HashMap;
import java.util.Map;

public class CAConfig extends ConfigBase{
	
	private String signkeyAlias ;
	private String certAlias;
	private String certTemplate="default.tem" ;
	private KMCConfig kmcConfig ;
	
	private String admin ;
	
	private Map<String,RAConfig> raConfigs =new HashMap<String,RAConfig>() ;

	


	public String getCertTemplate() {
		return certTemplate;
	}

	public void setCertTemplate(String certTemplate) {
		this.certTemplate = certTemplate;
	}

	/**
	 * @return the admin
	 */
	public String getAdmin() {
		return admin;
	}

	/**
	 * @param admin the admin to set
	 */
	public void setAdmin(String admin) {
		this.admin = admin;
	}

	public String getSignkeyAlias() {
		return signkeyAlias;
	}

	public void setSignkeyAlias(String signkeyAlias) {
		this.signkeyAlias = signkeyAlias;
	}

	public String getCertAlias() {
		return certAlias;
	}

	public void setCertAlias(String certAlias) {
		this.certAlias = certAlias;
	}

	public KMCConfig getKmcConfig() {
		return kmcConfig;
	}

	public void setKmcConfig(KMCConfig kmcConfig) {
		this.kmcConfig = kmcConfig;
	}

	public Map<String, RAConfig> getRaConfigs() {
		return raConfigs;
	}

	public void setRaConfigs(Map<String, RAConfig> raConfigs) {
		this.raConfigs = raConfigs;
	}
	public void addRAConfig (RAConfig raconfig) {
		
		this.raConfigs.put(raconfig.getId(), raconfig) ;
		
	}
	
	public RAConfig getRAConfig (String raid) {
		
		return this.raConfigs.get(raid) ;
		
	}



	
	
	

}
